package com.weds.custompage.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 部门树列表
 * </p>
 *
 * @author lhw
 * @since 2023-09-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("public.sc_dept")
@ApiModel(value = "ScDeptDO对象", description = "部门树列表")
public class ScDeptDO {

    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    @ApiModelProperty("部门来源编号，等同source_id或source_no")
    @TableField("dept_no")
    private String deptNo;

    @TableField("pt_dept_id")
    private Integer ptDeptId;

    @ApiModelProperty("部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty("部门全名")
    @TableField("full_dept_name")
    private String fullDeptName;

    @ApiModelProperty("预留字段")
    @TableField("dept_type_id")
    private Integer deptTypeId;

    @ApiModelProperty("系统预置组别 字典: CDS001")
    @TableField("group_id")
    private Integer groupId;

    @ApiModelProperty("id节点路径")
    @TableField("node_path_code")
    private String nodePathCode;

    @ApiModelProperty("name节点路径")
    @TableField("node_path_name")
    private String nodePathName;

    @ApiModelProperty("所属级数")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("是否叶子节点")
    @TableField("is_leaf")
    private Integer isLeaf;

    @TableField("use_status_id")
    private Integer useStatusId;

    @TableField("show_order")
    private Integer showOrder;

    @TableField("remark")
    private String remark;

    @TableField("ct_user_id")
    private Integer ctUserId;

    @TableField("ct_date")
    private LocalDateTime ctDate;

    @TableField("lt_user_id")
    private Integer ltUserId;

    @TableField("lt_date")
    private LocalDateTime ltDate;

    @TableField("version_id")
    private String versionId;

    @ApiModelProperty("来源")
    @TableField("source_no")
    private String sourceNo;

    @ApiModelProperty("来源ID")
    @TableField("source_id")
    private Integer sourceId;

    @ApiModelProperty("上级来源ID")
    @TableField("pt_source_id")
    private Integer ptSourceId;

    @ApiModelProperty("上级来源编号")
    @TableField("pt_source_no")
    private String ptSourceNo;
}
